import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class J20250321 {

    public static void main(String[] args) {
        FanRen f1 = new FanRen("韩立", 221);
        FanRen f3 = new FanRen("宋玉", 221);
        f1.jj();
        System.out.println(String.format("姓名: %s, 户口: %s", f1.name, FanRen.huKou));
        System.out.println(String.format("姓名: %s, 户口: %s", f3.name, FanRen.huKou));
        FanRen.huKou = "大晋";
        FanRen f2 = new FanRen("大衍神君", 10000);
        System.out.println(String.format("姓名: %s, 户口: %s", f2.name, FanRen.huKou));
        //        System.out.println(f1.age);
//
//        FanRen f2 = new FanRen();
//        f2.name = "南宫婉";
//        f2.age = 263;
//        f1.bg();
//        f2.jj();
    }

    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String passWord = null;
        for (int i = 2; i >= 0 ; i--) {
            System.out.print("请输入密码: ");
            passWord = scanner.nextLine();
            if (passWord.equals("念头通达")) {
                System.out.println("登录成功");
                break;
            } else {
                if (i > 0) {
                    System.out.printf("你还有%d次输入机会!!!\n", i);
                } else {
                    System.out.println("登入失败");
                }
            }
        }

    }

    public static void main1(String[] args) {
//        int[] arr = new int[3];
//        int[] arrs = new int[]{1,2,3};
//        int[] arrt = {1,2,3};
//
//        String[] str1 = {"a", "b", "c"};
//        String[] str2 = new String[3];
//        String[] str3 = new String[]{"a", "b", "c"};

        int[][] arr1 = new int[3][3];
        int[][] arr2 = {{1,2,3},{4,5,6},{7,8,9}};
        char[][] arr3 = new char[2][];
        arr3[0] = new char[]{'韩', '立'};
        arr3[1] = new char[]{'南', '宫', '婉'};
        char[][] arr4 = Arrays.copyOf(arr3, 2);
        int[][] arr5 = Arrays.copyOfRange(arr2, 1, 3);
        int[] arr6 = new int[72];
        Random random = new Random();
        for (int i = 0; i < arr5.length; i++) {
            for (int j = 0; j < arr5[i].length; j++) {
                System.out.print(arr5[i][j]);
            }
            System.out.println();
        }
        for (int i = 0; i < arr6.length; i++) {
            arr6[i] = 1 + random.nextInt(72);//[1,72]
        }
        Arrays.sort(arr6);
        System.out.println(Arrays.toString(arr3[1]));

    }
}
